<!DOCTYPE html>

<head>
    <title>ajax demo</title>
    <!-- 用ajax在main.js里面写下面这个操作 -->
    <!-- <link rel="stylesheet" href="style.css"> -->
</head>

<body>
    <h1>AJAX Hello <span id="myName"></span></h1>
    <p>
        <button id="getCSS">请求 CSS</button>
        <button id="getJS">请求 JS</button>
        <button id="getHTML">请求 HTML</button>
        <button id="getXML">请求 XML</button>
        <button id="getJSON">请求 JSON</button>
    </p>
    <script src='/main.js'></script>
</body>

</html>